package com.cf.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cf.enums.UserRole;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_user")
public class User implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String phone;

    private String password;

    private String email;

    private int area;

    private Integer type;

    @TableField(value = "is_lock")
    private Integer locked;

    //注册来源，推荐、朋友圈、抖音等等
    private Integer source;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "user_role")
    private int userRole;

}
